cmake_minimum_required(VERSION 3.0.2)
project(dynamic_obstacle)

find_package(catkin REQUIRED COMPONENTS
  pcl_conversions
  pcl_ros
  roscpp
  sensor_msgs
  std_msgs
)
##声明catkin包依赖的其他库
catkin_package(
  LIBRARIES pointcloud_processor
  CATKIN_DEPENDS roscpp std_msgs sensor_msgs pcl_ros pcl_conversions
)

##在include目录中添加头文件
include_directories(
  ${catkin_INCLUDE_DIRS}
  ${PCL_INCLUDE_DIRS}
)

#创建可执行文件
add_executable(dynamic_obstacle src/dynamic_obstacle.cpp)

##将可执行文件连接到catkin库
target_link_libraries(dynamic_obstacle
${catkin_LIBRARIES}
${PCL_LIBRARIES}

)
